/**
 * 
 */
package it.unibo.refolding.pico;

import it.unimi.dsi.fastutil.ints.IntList;

import com.google.common.base.Preconditions;

public class ApproachRetractionLoop {

  public static final int APPROACH_RETRACTION_SEGMENTS = 3;
  
	public final IntList junctionPoints;
	public final PlainPicoData[] iterations;

	public ApproachRetractionLoop(IntList junctionPoints, PlainPicoData[] approachRetractionCycles) {
		int iterations = approachRetractionCycles.length;
		Preconditions.checkArgument(junctionPoints.size() == iterations
				* (ApproachRetractionLoop.APPROACH_RETRACTION_SEGMENTS + 1));
		this.junctionPoints = junctionPoints;
		this.iterations = approachRetractionCycles;
	}
}
